﻿Public Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If (Session("UserName") = "") Then
            Response.Redirect("~/Account/Login.aspx")
        ElseIf (Session("UserName") = "administrator") Then
            Response.Redirect("~/Admin/index.aspx")
        Else
            Response.Redirect("~/Books/index.aspx")
        End If
    End Sub

End Class